package com.taotao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller

public class PageController {


    //跳转首页
   @RequestMapping("/")
    public String showIndex()throws Exception{
        return "index";
    }


    //显示商品的查询页面
    @RequestMapping("/{page}")
    public String showPage(@PathVariable String page)throws Exception{
       return page;
    }

}
